<?php
$this->breadcrumbs = array(
    'Manage blog'
);
?>
<ul class="nav nav-tabs">
    <li class="active">
        <a href="#index">
            <i class="splashy-documents"></i>
            Manage
        </a>
    </li>
    <li>
        <a href="<?php echo url('/blog/create') ?>">
            <i class="splashy-document_letter_edit"></i> Add New
        </a>
    </li>
</ul>
<div class="tab-content">
    <div class="tab-pane active" id="index">
        <?php
        $this->widget('bootstrap.widgets.TbGridView', array(
            'type' => 'striped bordered condensed',
            'dataProvider' => $model->search('blog'),
            'template' => "{items}\n{pager}",
            'filter' => $model,
            'columns' => array(
                array(
                    'name' => 'node_id',
                    'header' => '#',
                    'htmlOptions' => array('width' => '50'),
                ),
                'node_title',
                array(
                    'name' => 'node_status',
                    'header' => 'Status',
                    'type' => 'raw',
                    'value' => '$data->getStatus()',
                    'filter' => Node::getSatusFilter()
                ),
                array('name' => 'update_time',
                    'filter' => false,
                    'type' => 'datetime'
                ),
                array(
                    'class' => 'bootstrap.widgets.TbButtonColumn',
                    'htmlOptions' => array('style' => 'width: 50px'),
                    'template' => '{update}{delete}',
                    'header' => 'Action',
                ),
            ),
        ));
        ?>
    </div>
</div>
